|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagents.anac.y2010.Yushu.Utility
public class Utility
| Constructor Summary | |
|---|---|
Utility()
|
|
| Method Summary | |
|---|---|
static Action |
chooseRandomBidAction(Agent agent)
Wrapper for getRandomBid, for convenience. |
static Bid |
getRandomBid(UtilitySpace utilityspace)
|
static double |
Paccept(double u,
double t1)
This function determines the accept probability for an offer. |
static double |
sq(double x)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utility()
| Method Detail |
|---|
public static Action chooseRandomBidAction(Agent agent)
public static Bid getRandomBid(UtilitySpace utilityspace)
throws java.lang.Exception
java.lang.Exception - if we can't compute the utility (eg no evaluators have been set)
or when other evaluators than a DiscreteEvaluator are present in the util space.
public static double Paccept(double u,
double t1)
throws java.lang.Exception
u - is the utilityt - is the time as fraction of the total available time
(t=0 at start, and t=1 at end time)
java.lang.Exception - if you use wrong values for u or t.public static double sq(double x)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||